package com.travelzen._9.interfaces.abstractinstrument;

import com.travelzen._8.polymorphic.instrument.Note;

public class Music4 {

	static void tune(Instrument i){
		i.play(Note.MIDDLE_C);
	}

	static void tuneAll(Instrument[] e){
		for (Instrument instrument : e) {
			tune(instrument);
		}
	}
	
	public static void main(String[] args) {
		Instrument[] orchestra = {
				new Wind(),
				new Percussion(),
				new Stringed(),
				new Brass(),
				new Woodwind()
		};
		tuneAll(orchestra);
		Test.p();
		Test.p();
	}
}
